package controller;/** * A class for modelling a custom made event * @author Daniel Bond, Mohammed Abdullah, Gideon Pyzer * */
public class CustomEvent 
{
	private String name;
	private Object source;
	private Object attached;
	public CustomEvent(String name, Object source, Object attached)
	{
		this.attached = attached;
		this.source = source;
		this.name = name;
	}
	public CustomEvent(String name)
	{
		this.name = name;
		this.attached = null;
		this.source = null;
	}
	public CustomEvent(String name, Object source)
	{
		this.source = source;
		this.attached = null;
		this.name = name;
	}	/**	 * Gets the name of the event	 * @return the name of the event	 */
	public String getName()
	{
		return this.name;
	}		/**	 * Gets the source of the event	 * @return the object which created the event	 */
	public Object getSource()
	{
		return this.source;
	}	/**	 * Gets the attached object of the event	 * @return the attached object	 */
	public Object getAttached()
	{
		return this.attached;
	}
}